﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Registracija.aspx.cs" Inherits="automobili_gui.UserManagement.Registracija" Debug="True" EnableEventValidation="False" EnableViewStateMac="False" ViewStateEncryptionMode="Never" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </script>
    <style type="text/css">
        .style1
        {
            width: 153px;
        }
        .style2
        {
            width: 153px;
            height: 25px;
        }
        .style3
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
    <table style="width: 100%; margin-bottom: 21px;">
        <tr>
            <td class="style2">
    Ime:</td>
            <td class="style1">
    <asp:TextBox ID="ime" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator id="imeValid" runat="server" ControlToValidate="ime" ErrorMessage="Morate uneti ime!" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
         
        </tr>
        <tr>
            <td class="style2">
    Prezime:
            </td>
            <td class="style1">
    <asp:TextBox ID="prezime" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator id="prezimeValid" runat="server" ControlToValidate="prezime" ErrorMessage="Morate uneti prezime!" ForeColor="Red"></asp:RequiredFieldValidator>
   
            </td>
          
        </tr>
        <tr>
            <td class="style2">
    Email:
            </td>
            <td class="style1">
    <asp:TextBox ID="email" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator id="emailValid" runat="server" ControlToValidate="email" ErrorMessage="Morate uneti e-mail!" ForeColor="Red"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator id="emailRegex" ControlToValidate="email" 
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
        ErrorMessage="E-mail pogresan"
        runat="server" ></asp:RegularExpressionValidator>
        <asp:Label id="reg" ForeColor="Red" runat="server"></asp:Label>
        
            </td>
              
         
        </tr>
        <tr>
            <td class="style2">
    Lozinka:
            </td>
            <td class="style1">
    <asp:TextBox ID="lozinka" runat="server" TextMode="Password" 
        CausesValidation="True"></asp:TextBox>
        <asp:RequiredFieldValidator id="lozinkaValid" runat="server" ControlToValidate="lozinka" ErrorMessage="Morate uneti lozinku!" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
           
        </tr>
        <tr>
            <td class="style2">
    Ponovite lozinku:
            </td>
            <td class="style1">
    <asp:TextBox ID="ponoviLozinka" runat="server" TextMode="Password" 
        ></asp:TextBox>
        <asp:RequiredFieldValidator id="ponLozinkaValid" runat="server" ControlToValidate="ponoviLozinka" ErrorMessage="Morate ponoviti lozinku!" ForeColor="Red"></asp:RequiredFieldValidator>
            
            <asp:CompareValidator id="porediLoz" 
                    ControlToValidate="ponoviLozinka" 
                    ControlToCompare="lozinka"
                    Type="String"
                    EnableClientScript="false" 
                    ErrorMessage="Nisu iste lozinke!" 
                    runat="server"/>
                    </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
    <asp:Button ID="Button1" runat="server" Text="Registruj" 
        onclick="registrationForm_Authenticate" Width="128px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</div>
</asp:Content>
